<%@ include file="/include.jsp" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
  <link rel="stylesheet" type="text/css" href="styles/default.css" >
  <script type="text/javascript" src="scripts/common.js"></script>
  <script type="text/javascript" src="scripts/check.js"></script>
</head>

<body>
<div class="main" style="width:50%;">
	<form id="UnvalidDeclListForm" action="UnvalidDeclList.do" method="post">
			<table border="0" cellspacing="0" cellpadding="0" width="100%" align="center">
			  <caption>
				  无效单管理
			  </caption>
			    <tr>
			      <td>
			        <table border="0" width="100%">
			          <tr>
			            <td width="26%"></td>
			            <td width="20%"></td>
			            <td width="15%"></td>
			            <td ></td>
			          </tr>
			          <tr height="35">
			            <td align="center" colspan="4">报检号&nbsp;<input type="text" name="declNo" value="${map.cUnvalidDecl.declNo}"></td>
			          </tr>
			          <tr class="button">
			            <td colspan="4">
			            	<input type="submit" value=" 查 询 " />&nbsp;
			              	<input type="button" value=" 清空 " onclick="clearInput();" />
			              	<input type="hidden" id="username" name="username" value="">
			              	<input type="hidden" id="id" name="id" value="">
			            </td>
			          </tr>
			        </table>
			      </td>
			    </tr>
			  
			  <tr height="30">
			      <td align="center">
			      	<mytag:pagination pager="${map.page}" pageSize="10"  suppressHidden="true"/>
			      </td>
			  </tr>
			  <tbody>
			    <tr>
			      <td align="center">
			        <table class="list" >
			          <tr class="title">
			            <td width="5%">序号</td>
			            <td>报检号</td>
			            <td>操作用户</td>
			            <td>时间</td>
			            <td>操作</td>
			          </tr>
					<c:forEach items="${map.page.items}" varStatus="stat" var="unvalidDecl">
			          <tr>
			            <td>${stat.count+map.page.seq}</td>
			            <td>${unvalidDecl.declNo}</td>
			            <td>${unvalidDecl.username}</td>
			            <td><fmt:formatDate value="${unvalidDecl.time}" pattern="yyyy-MM-dd"/></td>
			            <td>
			              	<a class="deco" href="#" onclick="return submitValidDecl(${unvalidDecl.id});">
			              		重新设定有效
			              	</a>
			            </td>         
			          </tr>
					</c:forEach>
			        </table>
			      </td>
			    </tr>
			  </tbody>
			    <tr height="30">
			      <td align="center">
			      	<mytag:pagination pager="${map.page}" pageSize="10"  suppressHidden="false"/>
			      </td>
			    </tr>
			</table>
	</form>
</div>
</body>
</html>
